projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3820b77
)
Add check for enabled warning before issuing
author
Lars Ingebrigtsen
<larsi@gnus.org>
Mon, 17 Jun 2019 10:09:18 +0000
(12:09 +0200)
committer
Lars Ingebrigtsen
<larsi@gnus.org>
Mon, 17 Jun 2019 10:09:18 +0000
(12:09 +0200)
* lisp/emacs-lisp/bytecomp.el (byte-compile-function-warn): Check
whether we want the `obsolete' warning before issuing it.
lisp/emacs-lisp/bytecomp.el
patch
|
blob
|
history
diff --git
a/lisp/emacs-lisp/bytecomp.el
b/lisp/emacs-lisp/bytecomp.el
index 66dfe4302f48933fb572028e6e7317a22605233a..9e3e603c043b32c02bba6d8f05ae7e945972c991 100644
(file)
--- a/
lisp/emacs-lisp/bytecomp.el
+++ b/
lisp/emacs-lisp/bytecomp.el
@@
-1397,7
+1397,8
@@
when printing the error message."
(defun byte-compile-function-warn (f nargs def)
(byte-compile-set-symbol-position f)
- (when (get f 'byte-obsolete-info)
+ (when (and (get f 'byte-obsolete-info)
+ (byte-compile-warning-enabled-p 'obsolete f))
(byte-compile-warn-obsolete f))
;; Check to see if the function will be available at runtime